<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选择题库 - 在线考试系统</title>
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="navbar">
        <h1>选择题库 - {{ type }}</h1>
    </div>

    <div class="content">
        <form action="" method="POST">
            <div class="form-group">
                {% for question in questions %}
                    <div class="question-item">
                        <input type="checkbox" name="selected_questions" value="{{ question.id }}">
                        <label>{{ question.text }}</label>
                    </div>
                {% endfor %}
            </div>
            <button type="submit" class="primary-btn">添加选中题目</button>
        </form>
    </div>
</body>
</html>
